package action;

import java.util.Set;

import po.User;

import po.UserDAO;


public class CQM_ZhuceAction {
  public String user;
  public String password;
  public String question;
  public String answer;
  public String gender;
  public String year;
  public String month;
  public String day;
  public String mobile;
public String getUser() {
	return user;
}
public void setUser(String user) {
	this.user = user;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getQuestion() {
	return question;
}
public void setQuestion(String question) {
	this.question = question;
}
public String getAnswer() {
	return answer;
}
public void setAnswer(String answer) {
	this.answer = answer;
}
public String getGender() {
	return gender;
}
public void setGender(String gender) {
	this.gender = gender;
}
public String getYear() {
	return year;
}
public void setYear(String year) {
	this.year = year;
}
public String getMonth() {
	return month;
}
public void setMonth(String month) {
	this.month = month;
}
public String getDay() {
	return day;
}
public void setDay(String day) {
	this.day = day;
}
public String getMobile() {
	return mobile;
}
public void setMobile(String mobile) {
	this.mobile = mobile;
}
	public String execute(){
		User use=new User(user+"@126.com",  password,  gender,  year,
				 month, day, mobile, question,
				 answer);
		new UserDAO().save(use);
		return "ok";
		
		
	}
	
}
